3.31 \(\int \frac {x}{\log ^2(c x)} \, dx\)

Optimal. Leaf size=24 \[ \frac {2 \text {Ei}(2 \log (c x))}{c^2}-\frac {x^2}{\log (c x)} \]

[Out]

2*Ei(2*ln(c*x))/c^2-x^2/ln(c*x)

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 24, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {2306, 2309, 2178} \[ \frac {2 \text {Ei}(2 \log (c x))}{c^2}-\frac {x^2}{\log (c x)} \]

Antiderivative was successfully verified.

[In]

Int[x/Log[c*x]^2,x]

[Out]

(2*ExpIntegralEi[2*Log[c*x]])/c^2 - x^2/Log[c*x]

Rule 2178

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[(F^(g*(e - (c*f)/d))*ExpIntegral
Ei[(f*g*(c + d*x)*Log[F])/d])/d, x] /; FreeQ[{F, c, d, e, f, g}, x] &&  !$UseGamma === True

Rule 2306

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_)*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[((d*x)^(m + 1)*(a + b*Log
[c*x^n])^(p + 1))/(b*d*n*(p + 1)), x] - Dist[(m + 1)/(b*n*(p + 1)), Int[(d*x)^m*(a + b*Log[c*x^n])^(p + 1), x]
, x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[m, -1] && LtQ[p, -1]

Rule 2309

Int[((a_.) + Log[(c_.)*(x_)]*(b_.))^(p_)*(x_)^(m_.), x_Symbol] :> Dist[1/c^(m + 1), Subst[Int[E^((m + 1)*x)*(a
 + b*x)^p, x], x, Log[c*x]], x] /; FreeQ[{a, b, c, p}, x] && IntegerQ[m]

Rubi steps

\begin {align*} \int \frac {x}{\log ^2(c x)} \, dx &=-\frac {x^2}{\log (c x)}+2 \int \frac {x}{\log (c x)} \, dx\\ &=-\frac {x^2}{\log (c x)}+\frac {2 \operatorname {Subst}\left (\int \frac {e^{2 x}}{x} \, dx,x,\log (c x)\right )}{c^2}\\ &=\frac {2 \text {Ei}(2 \log (c x))}{c^2}-\frac {x^2}{\log (c x)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 24, normalized size = 1.00 \[ \frac {2 \text {Ei}(2 \log (c x))}{c^2}-\frac {x^2}{\log (c x)} \]

Antiderivative was successfully verified.

[In]

Integrate[x/Log[c*x]^2,x]

[Out]

(2*ExpIntegralEi[2*Log[c*x]])/c^2 - x^2/Log[c*x]

________________________________________________________________________________________

fricas [A]  time = 0.43, size = 33, normalized size = 1.38 \[ -\frac {c^{2} x^{2} - 2 \, \log \left (c x\right ) \operatorname {log\_integral}\left (c^{2} x^{2}\right )}{c^{2} \log \left (c x\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/log(c*x)^2,x, algorithm="fricas")

[Out]

-(c^2*x^2 - 2*log(c*x)*log_integral(c^2*x^2))/(c^2*log(c*x))

________________________________________________________________________________________

giac [A]  time = 0.20, size = 24, normalized size = 1.00 \[ -\frac {x^{2}}{\log \left (c x\right )} + \frac {2 \, {\rm Ei}\left (2 \, \log \left (c x\right )\right )}{c^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/log(c*x)^2,x, algorithm="giac")

[Out]

-x^2/log(c*x) + 2*Ei(2*log(c*x))/c^2

________________________________________________________________________________________

maple [A]  time = 0.03, size = 26, normalized size = 1.08 \[ -\frac {x^{2}}{\ln \left (c x \right )}-\frac {2 \Ei \left (1, -2 \ln \left (c x \right )\right )}{c^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x/ln(c*x)^2,x)

[Out]

-x^2/ln(c*x)-2/c^2*Ei(1,-2*ln(c*x))

________________________________________________________________________________________

maxima [A]  time = 0.82, size = 13, normalized size = 0.54 \[ \frac {2 \, \Gamma \left (-1, -2 \, \log \left (c x\right )\right )}{c^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/log(c*x)^2,x, algorithm="maxima")

[Out]

2*gamma(-1, -2*log(c*x))/c^2

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.04 \[ \int \frac {x}{{\ln \left (c\,x\right )}^2} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x/log(c*x)^2,x)

[Out]

int(x/log(c*x)^2, x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ - \frac {x^{2}}{\log {\left (c x \right )}} + 2 \int \frac {x}{\log {\left (c x \right )}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/ln(c*x)**2,x)

[Out]

-x**2/log(c*x) + 2*Integral(x/log(c*x), x)

________________________________________________________________________________________